package ysq.xyg.sale.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.sale.model.po.SaleProductMy;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.sale.model.vo.SaleProductMyVo;

import java.util.List;


/**
 * 销售模块-我的产品service接口
 *
 * @author shengQiang yu
 * @date 2019-10-9 14:57:59
 */
public interface SaleProductMyService extends BaseService<SaleProductMy> {
    /**
     * 分页查询
     *
     * @param saleProductMyVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-9 14:57:59
     */
    ReturnEntity page(SaleProductMyVo saleProductMyVo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param saleProductMyVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-9 14:57:59
     */
    ReturnEntity updateByName(SaleProductMyVo saleProductMyVo, SysUser currentUser);
    /**
     * 修改
     *
     * @param saleProductMyVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-9 14:57:59
     */
    ReturnEntity addOrUpdate(SaleProductMyVo saleProductMyVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-9 14:57:59
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param saleProductMyVo 对象
     * @return List<SaleProductMy> SaleProductMy集合
     * @author shengQiang yu
     * @date 2019-10-9 14:57:59
     */
    List<SaleProductMy> acceptList(SaleProductMyVo saleProductMyVo);
}
